;;; packages - package definitions for GNU Guix
;;; Copyright (C) 2017 ng0
;;;
;;; This program is free software: you can redistribute it and/or modify
;;; it under the terms of the GNU Affero General Public License as
;;; published by the Free Software Foundation, either version 3 of the
;;; License, or (at your option) any later version.
;;;
;;; This program is distributed in the hope that it will be useful,
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU Affero General Public License for more details.
;;;
;;; You should have received a copy of the GNU Affero General Public License
;;; along with this program.  If not, see <http://www.gnu.org/licenses/>.

(define-module (ng0 packages openbox)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system python)
  #:use-module (guix build-system gnu)
  #:use-module (gnu packages openbox)
  #:use-module (gnu packages freedesktop)
  #:use-module (gnu packages gnome)
  #:use-module (gnu packages gtk)
  #:use-module (gnu packages image)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages python)
  #:use-module (gnu packages xml)
  #:use-module (gnu packages xorg))

(define-public obmenu
  (package
    (name "obmenu")
    (version "1.0")
    (source
     (origin
       (method url-fetch)
       (uri (string-append
             "mirror://sourceforge/obmenu/obmenu/"
             version "/obmenu-" version ".tar.gz"))
       (sha256
        (base32
         "09qfqb9x81xn9p2iqkl1z7aikj47fj3ckbmxld7a6qfl816sdkn9"))))
    (build-system python-build-system)
    (arguments
     `(#:python ,python-2))
    (inputs
     `(("python2-pygtk" ,python2-pygtk)))
    (synopsis "Openbox menu editor")
    (description
     "Obmenu is a menu editor designed for openbox.  It's easy to use,
allowing to get the most out of the powerful Openbox menu system,
while hiding the xml layout from the user.
It also (optionally) installs a bunch of dynamic menus (pipe menus),
such as Gnome menus or a quick-navigator.
You can also use the obxml module to easily write pipe menus of
your own in Python.")
    (home-page "http://obmenu.sourceforge.net/")
    (license license:gpl2+)))
